- if domain_presenter.enabled?
  - if domain_presenter.auto_ssl_enabled
    - if domain_presenter.show_auto_ssl_failed_warning?
      .form-group.gl-py-6.gl-m-0.gl-border-t.js-shown-if-auto-ssl{ class: ("!gl-hidden" unless auto_ssl_available_and_enabled) }
        .row
          .gl-col-12
            = render Pajamas::AlertComponent.new(dismissible: false, variant: :warning) do |c|
              - c.with_body do
                = _("Something went wrong while obtaining the Let's Encrypt certificate.")
              - c.with_actions do
                = link_button_to s_('GitLabPagesDomains|Retry'), retry_auto_ssl_project_pages_domain_path(@project, domain_presenter), method: :post, size: :small
    - elsif !domain_presenter.certificate_gitlab_provided?
      .form-group.gl-py-6.gl-m-0.gl-border-t.js-shown-if-auto-ssl{ class: ("!gl-hidden" unless auto_ssl_available_and_enabled) }
        .row
          .gl-col-12
            = render Pajamas::AlertComponent.new(dismissible: false) do |c|
              - c.with_body do
                = _("GitLab is obtaining a Let's Encrypt SSL certificate for this domain. This process can take some time. Please try again later.")
- else
  .form-group.gl-py-6.gl-m-0.gl-border-t.js-shown-if-auto-ssl{ class: ("!gl-hidden" unless auto_ssl_available_and_enabled) }
    .row
      .gl-col-12
        = render Pajamas::AlertComponent.new(dismissible: false, variant: :warning) do |c|
          - c.with_body do
            = _("A Let's Encrypt SSL certificate can not be obtained until your domain is verified.")
